]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensions-tool: Remove menu arrow from extension template
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 1 Feb 2021 11:16:44 +0000 (12:16 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 1 Feb 2021 11:40:03 +0000 (11:40 +0000)
We stopped putting arrows into the top bar, so we shouldn't encourage
new extensions to still do that.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1618>

subprojects/extensions-tool/src/templates/indicator/extension.js

index fd84782a86ff2e337f856a040402e8118b05a37b..5d9753efc4eb9e1e85f08bb8749f1861152ad70d 100644 (file)
@@ -35,13 +35,10 @@ class Indicator extends PanelMenu.Button {
     _init() {
         super._init(0.0, _('My Shiny Indicator'));
 
-        let box = new St.BoxLayout({ style_class: 'panel-status-menu-box' });
-        box.add_child(new St.Icon({
+        this.add_child(new St.Icon({
             icon_name: 'face-smile-symbolic',
             style_class: 'system-status-icon',
         }));
-        box.add_child(PopupMenu.arrowIcon(St.Side.BOTTOM));
-        this.add_child(box);
 
         let item = new PopupMenu.PopupMenuItem(_('Show Notification'));
         item.connect('activate', () => {